package com.kxr.literetrofit.network;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * Created by kongxr on 2019/3/14.
 * 网络请求拦截器
 */
public class BaseInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request() .newBuilder()
//                .addHeader("Content-Type", "application/json;charset=UTF-8")
//                .addHeader("header", "123456")
                .build();
        return chain.proceed(request);
    }
}
